using System;
using Microsoft.SPOT;
using System.Collections;

namespace MLRobotic.IA.PathFinding
{
    public class Point
    {
        public uint X;
        public uint Y;

        public Point(uint x, uint y)
        {
            // TODO: Complete member initialization
            this.X = x;
            this.Y = y;
        }

        internal string debugValue()
        {
            return " (" + this.X + "," + this.Y + ")";
        }

        public int CompareTo(Point obj)
        {
            if ((((Point)obj).X == this.X) && (((Point)obj).Y == this.Y))
                return 1;
            else
                return -1;
        }

        /// <summary>
        /// Indicates whether the point can be visited (false if the point can not be)
        /// </summary>
        public bool Walkable
        {
            get
            {
                //return AireDeJeu.elements[this.X][this.Y].Walkable();
                return true;
            }
        }
    }
}
